//
//  WCNHomeCenterView.m
//  WCN
//
//  Created by wsj2015 on 16/3/30.
//  Copyright © 2016年 ShanghaiCize Trade And Business Co., Ltd. All rights reserved.
//

#import "WCNHomeCenterView.h"

@implementation WCNHomeCenterView

- (instancetype)initWithFrame:(CGRect)frame{
    if (self= [super initWithFrame:frame]) {
        
        

    }
    return self;
}

- (void)drawRect:(CGRect)rect{



    CGFloat myH =self.bounds.size.height;
    CGFloat myW= self.bounds.size.width;
    
    UIBezierPath *path = [[UIBezierPath alloc] init];
    CGPoint start  =CGPointMake(0, myH/2);
    [path moveToPoint:start];
    [path addLineToPoint:CGPointMake(myW, myH/2)];
    
    start = CGPointMake(myW/2, 0);
    [path moveToPoint:start];
    [path addLineToPoint:CGPointMake(myW/2, myH)];
    
    start = CGPointMake(0, myH);
    [path moveToPoint:start];
    [path addLineToPoint:CGPointMake(myW, myH)];
    
    path.lineWidth = kOnePX;
    [kBorderColor setStroke];
    
    [path stroke];

}

@end
